var _Step = require('scenes/game/toturial/step.js');
var _inherit = require('core/inherit.js');
var _global = require('global/global.js');

function Step() {
    _Step.call(this);
}
_inherit(Step, _Step);
Step.prototype.onAbsorbStart = function (accept) {
    if (accept) {
        this.mToturial.hideHeader();
    }
};
Step.prototype.onMergeBefore = function () {
    this.mToturial.nextStep();
    this.mToturial = null;
    this.mLocal = null;
};
Step.prototype.onStart = function (toturial, local) {
    this.mToturial = toturial;
    this.mLocal = local;

    var rtf = this.rtfHeader().textBuilder()
        .addText('This is Mr.', 'black')
        .addText('3', 'red')
        .create();
    this.alineRight(rtf);
    this.mToturial.showHeaderTip(rtf);
    this.mLocal.find('gamearea.slotpool').addSlots([3], true);
};

module.exports = Step;